package com.new17;

/***
 * @ClassName: Test
 * @Description:
 * @Auther: 送你一块二向箔
 * @Date: 18:10 2022/4/23
 * @version : V1.0
 */
public class Test {
    public static void main(String[] args) {
        switchNowTest();
    }
    public static void switchNowTest() {
        var c = 'B';
        var b = "eeeee";
        System.out.println(b.getClass());
        var res = switch (c) {
            case 'A' -> "优秀";
            case 'B' -> "良好";
            case 'C' -> "及格";
            default -> "未知等级";
        };
        System.out.println(res);
    }
}
